﻿using Microsoft.Extensions.Options;
using RuoVea.ExSugar;
using RuoVea.OmiApi.Log;

namespace ShiSan.Blog.Web.Filters;

/// <summary>
/// 
/// </summary>
public class CustomizeSqlSugarLog : ICustomizeSqlSugarLog
{
    public CustomizeSqlSugarLog(IOptions<List<DbConnectionConfig>> dbConnection) : base(dbConnection) { }

    /// <summary>
    /// 异常脚本记录
    /// </summary>
    /// <param name="sql"></param>
    public override void SugarErrorLogString(string sql)
    {
        Console.WriteLine(sql);
    }
    /// <summary>
    /// 执行脚本记录
    /// </summary>
    /// <param name="sql"></param>
    public override void SugarExecutingLogString(string sql)
    {
        Console.WriteLine(sql);
    }
}
